				<script type="text/javascript">
				function check(){
						if(confirm('Bạn có chắc muốn xóa không ?')){
							return true;
						}else{
							return false;
						}
					}
                </script>
                <div class="section">
					<!--[if !IE]>start title wrapper<![endif]-->
					<div class="title_wrapper">
						<span class="title_wrapper_top"></span>
						<div class="title_wrapper_inner">
							<span class="title_wrapper_middle"></span>
							<div class="title_wrapper_content">
								<h2 class="menu_title">Quản lý Video</h2>
							</div>
						</div>
						<span class="title_wrapper_bottom"></span>
					</div>
					<!--[if !IE]>end title wrapper<![endif]-->
					
					<!--[if !IE]>start section content<![endif]-->
					<div class="section_content">
						<span class="section_content_top"></span>
						
						<div class="section_content_inner minheight">
                        	<div class="table_tabs_menu">
                            <ul class="table_tabs">
                            	<li><a href="#" name="tab1" class="selected"><span><span>Danh sách</span></span></a></li>
								<li><a href="<?php echo base_url(); ?>admin/video/add" name=""><span><span>Thêm mới</span></span></a></li>
							</ul>
							<!--[if !IE]>start  tabs<![endif]-->
							<!--[if !IE]>end  tabs<![endif]-->
							</div>
							<!--[if !IE]>start table_wrapper<![endif]-->
							<div class="table_wrapper">
								<div class="table_wrapper_inner" id="tab1">
                                <form action="" method="post" name="mainform" id="mainform">
                                <div>Category : <select name="parentcategory" onChange="location.assign('<?php echo base_url(); ?>admin/video/?cat='+this.options[this.selectedIndex].value);">
										<option value="0">Root</option>                                
								<?php 
									foreach($hierarchydata as &$item){
										?>
										<option <?php if(isset($_GET["cat"])&&$item["id"]==$_GET["cat"]) echo 'selected="selected"'; ?> value="<?php echo $item["id"]; ?>"><?php echo $item["name"]; ?></option>
										<?php 
									}
								?>
                                </select></div>
                            
								<table cellpadding="0" cellspacing="0" width="905">
									<tbody><tr>
									  <th width="23">Stt.</th>
									  <th width="285"><a href="#">Video</a></th>
                                      <th width="100"><a href="#">Description</a></th>
									  <th width="64">Actions</th>
									</tr>
                                    <?php
									if(isset($currentlist) && $currentlist != NULL){
										$stt = 0;
										foreach($currentlist as $items){
											$stt++;
											echo "<tr class='first'>";
											echo "<td>$stt</td>";
											echo "<td>".$items['title']."</td>";
											echo "<td>".$items['description']."</td>";
											echo "<td>";
													echo "<div class='actions_menu'><ul>";
														echo "<li><a href='".base_url()."admin/video/update/$items[id]/' class='edit'>Edit</a></li>";
														echo "<li><a href='".base_url()."admin/video/del/$items[id]' class='delete' onclick='return check()'>Del</a></li>";
													echo "</ul></div>";
												echo "</td>";
												echo "</tr>";
											echo "</tr>";
										}
									}else{
										echo "<tr>";
										echo "<td colspan='6'>Không có dữ liệu</td>";
										echo "</tr>";
									}
									?>
								</tbody></table>
                            </form>
							</div>
						</div>
							<!--[if !IE]>end table_wrapper<![endif]-->
						</div>
					</div>
					<!--[if !IE]>end section content<![endif]-->
				</div>